export function showMessage(text: string) {
  console.log(text);
}

//处理复制逻辑
export function handleCopy(text) {
  const input = document.createElement("input");
  input.setAttribute("value", text);
  document.body.appendChild(input);
  input.select();
  const copyText = document.execCommand("copy");
  if (copyText) showMessage("复制成功！");
  document.body.removeChild(input);
}
